import React from 'React'
import ReactDOM from 'react-dom';

import {BrowserRouter as Router, Switch, Redirect,Route,Link} from 'react-router-dom'
import Layout from 'component/layout/layout.jsx'

//import Home from 'page/home/home.jsx'
 
 class App extends React.Component{
 	render(){
 		let LayoutRouter = (
           <Layout></Layout>
 		);
 		return (
 			<Router>
				<Switch>
					<Route path="/login"></Route>
					<Route path="/" render={ props => LayoutRouter}/>
				</Switch>
			</Router>

 			)
 	}
 }

 ReactDOM.render(
   <App/>,
   document.getElementById("app")
 );